<?php

/*
*###########################################################################################################################*
#															    															#
#															    															#
#    **  ** ****** ** **  **  ****** ** ***   ** ***   ****** ** **  **  ** **  ** ** **  **    ****   ** **  **  ******    #
#    **  ** ****** ********** ****** *******  *******  ****** ********** ** **  ** **********  ******  ********** ******    #
#    **  ** **  ** **  **  ** **     ***   ** **    ** **     **  **  **    **  ** **  **  ** ***   ** **  **  ** **        #
#    ****** **  ** **  **  ** ****** **   *** **   *** ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    ****** **  ** **  **  ** ****** *******  *******  ****** **  **  ** ** **  ** **  **  ** **       **  **  ** ******    #
#    **  ** **  ** **  **  ** **     *****    ******   **     **  **  ** ** **  ** **  **  ** ***   ** **  **  **     **    #
#    **  ** ****** **  **  ** ****** **       **  ***  ****** **  **  ** ** ****** **  **  **  ******  **  **  ** ******    #
#    **  ** ****** **  **  ** ****** **       **   *** ****** **  **  ** **  ** ** **  **  **   ****   **  **  ** ******    #
#															    															#
#															    															#
#															    															#
#    2010 - 2011 © HomePremiumCMS made by HomePemium as PremiumEye & Security by HomePremium and Merijnz		    		#
#															    															#
#    Powered by PhoenixPHP 3.7.1 (build 138000)										    									#
#															    															#
#															    															#
#															    															#
*###########################################################################################################################*
*/

define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('../global.php');
define("THIS_SCRIPT", 'display');
$username = $core->EscapeString($_SESSION['username']);
$email = $core->EscapeString($_SESSION['account']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $sitename." - Forum"; ?></title>
<link type="text/css" rel="stylesheet" href="../Public/Styles/<?php echo $currentstyle ?>/CSS/main.css" />
</head>

<body>

<?php include("header.php"); ?>

<div class="mainBox">

	<?php include("navigation.php"); ?>

	<div class="mid" id="midcontent">
    
    	<div style="width: 930px; margin-left: 1px; float: left; margin-top:10px;">
        
        	<div id="forum_top"></div>
        
        	<div id="forum_middle">
            	
                <div style="margin-top: -14px;"></div>
                
                <div id="forum_rounded_container_light_grey">
                
                <?php 
				$query = mysql_query("SELECT * FROM forum WHERE id = ".$core->EscapeString($_GET['id']).""); 
				$forum = mysql_fetch_array($query);
				?>
                
                	<a style="float: left;padding-right: 5px;" href="display.php">&laquo; Forum - Home</a></i></a> ||<a style="padding-left: 5px;" href="threads.php?id=<?php echo $core->EscapeString($_GET['id']); ?>">&laquo; <?php echo $forum['name']; ?></a>
                    
                </div>
                
                <form method="post" action="actions/newthread.php">
                
                	<div id="forum_items">
                	
                    <label>Titel</label><br />
                	<input type="text" style="width: 95%;" name="name" /><br />
                    
                    <label>Description</label><br />
                	<input type="text" style="width: 95%;" name="description" />
                    
                    </div>
                
            		<div id="forum_items">
                
                		<textarea id="editor" cols="80" name="text" style="width: 100%;height: 300px;"></textarea>
                        
                        <script type="text/javascript">

							CKEDITOR.replace( 'editor',
								{
									contentsCss : '../Public/Styles/Default/CSS/main.css',
									enterMode : CKEDITOR.ENTER_BR,
									language : '<?php echo $language; ?>'
								});

						</script>
					
					</div>
                
                	<div id="forum_items" style="margin-bottom: -30px;">
                    
                    	<input type="hidden" name="forum_id" value="<?php echo $core->EscapeString($_GET['id']); ?>"/>
                    
                    	<input type="hidden" name="made_by" value="<?php echo $username; ?>"/>
                
                		<input type="submit" value="<?php echo $lang['post']; ?>" />
                
                	</div>
                    
                </form>
                
            </div>
            
            <div id="forum_bottom"></div>
        
        </div>
        
    </div>
    
    <?php include("../system/footer.php"); ?>
    
</div>
</body>
</html>